import { Column, Entity, OneToMany, PrimaryGeneratedColumn,ManyToOne} from "typeorm";
import { Admin } from "../../admin/entityes/admin.entity";

@Entity()
export class Order {

    @PrimaryGeneratedColumn()
    orderId: number;

    @Column()
    orderDate: Date;

    @Column()
    orderMoney: number;

    @ManyToOne(()=> Admin, admin => admin.order)
    admin: Admin;

}
